import http from "../../util/http";
const module = {
  namespaced: true,
  state: {
    infoData:''
  },
  mutations: {
    setInfoData(state,data){
        state.infoData=data;
    }
  },
  //处理异步操作
  actions: {
    //获取资讯信息
    getInfoData(store) {
        http({
          url: `/gateway?actId=ElzMZU125260`,
          headers: {
            "X-Host": "mall.act.static-page.info",
          },
        }).then((res) => {
          store.commit("setInfoData", res.data.data.data);
        });
      },
  }
}
export default module;